<ul id="cl" class="rp tgo open">
	{@ $start = true }
	{@ $depth = 0 }
	<!--@foreach($replies as $key => $comment)-->
	<!--@if(!$start && $comment->get('depth') == $depth)-->
	</li>
	<!--@end-->
	<!--@if($comment->get('depth') > $depth)-->
	<ul>
	<!--@else-->
	<!--@while($comment->get('depth') < $depth)-->
	</li>
	</ul>
	{@ $depth -= 1 }
	<!--@end-->
	<!--@endif-->
	<li>
		<!--@if($selected_reply == $comment->comment_srl)--><strong style="display:block; margin:0 0 5px 0">{$lang->msg_selected_reply}</strong><!--@end-->
		{$comment->getContent(false)}
		<span class="auth"><em>{$comment->getNickName()}</em> <span class="time">{$comment->getRegdate()}</span></span>
		<!--@if($comment->isGranted() && !$selected_reply)-->
		<a href="#" onclick="if(confirm('{$lang->confirm_delete}')) doDeleteReply('{$comment->comment_srl}'); return false;" class="btn de">{$lang->cmd_delete}</a>
		<!--@endif-->
		<!--@if($oDocument->isGranted() && !$selected_reply)-->
		<a href="#" onclick="if(confirm('{$lang->msg_select_reply}')) doSelectReply('{$comment->comment_srl}'); return false;" class="btn se"><strong>{$lang->cmd_select_reply}</strong></a>
		<!--@end-->
		{@ $start = false }
		{@ $depth = $comment->get('depth') }
		<div class="op">
			<a href="#replies_{$comment->comment_srl}" onclick="doGetComments({$comment->comment_srl}); return false;" id="replies_{$comment->comment_srl}">{$lang->short_replies}</a> ({number_format($replies_count[$comment->comment_srl])})
		</div>
		<div class="opl" id="replies_content_{$comment->comment_srl}" style="display:none;"></div>
	<!--@endforeach-->
	<!--@while($depth > 0)-->
	</li>
	</ul>
	{@ $depth -= 1}
	<!--@end-->
	</li>
</ul>
<!--@if($oDocument->comment_page_navigation)-->
	<div id="clpn" class="pn">
	<!--@if($oDocument->comment_page_navigation->cur_page != 1)-->
	<a href="#" onclick="loadPage({$oDocument->document_srl}, {$oDocument->comment_page_navigation->cur_page-1}); return false;">&lsaquo; {$lang->cmd_prev}</a>
	<!--@endif-->
	<strong id="curpage">{$oDocument->comment_page_navigation->cur_page} / {$oDocument->comment_page_navigation->last_page}</strong>
	<!--@if($oDocument->comment_page_navigation->cur_page != $oDocument->comment_page_navigation->last_page)-->
	<a href="#" onclick="loadPage({$oDocument->document_srl}, {$oDocument->comment_page_navigation->cur_page+1}); return false;">{$lang->cmd_next} &rsaquo;</a>
	<!--@endif-->
	</div>
<!--@endif-->
